package com.wtwd.device.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wtwd.device.model.entity.DeviceHeartRateTotal;
import com.wtwd.device.model.vo.HeartRateVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author mjy
 * @since 2024-05-27
 */
@Mapper
public interface AppDeviceHeartRateTotalMapper extends BaseMapper<DeviceHeartRateTotal> {

    int insertOrUpdate(DeviceHeartRateTotal heartRateTotal);

    int bathInsertOrUpdate(@Param("list") List<DeviceHeartRateTotal> deviceHeartRateTotals);

    HeartRateVo selectHeartRateByTime(@Param("deviceId") Long deviceId, @Param("time") String time);
}
